package b3.widget.home
{
	import b3.widget.basic.*;
	import b3.net.*;
	import b3.scene.home.*;

	import flash.events.*;

	public class ZoomOutIcon extends BasicButton
	{
		public function ZoomOutIcon()
		{
			var ZoomOut:Class = ResourceHelper.getInstance().getClassByName("ZoomOutIcon");
			super(ZoomOut, null, 15, 28, 28);
			addEventListener(MouseEvent.CLICK, onMouseClick);
		}
		
		private function onMouseClick(event:MouseEvent):void
		{
			HomeScene.getInstance().getCurrentTown().zoomOut(0.1);	
		}
	}
}